import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-分页查询
export function list(params){
  return axios({
        url: assessCheckApi.list,
        method:'get',
        params:{...params},
        url_2:'outside',
  })
}
// 发起预算调配申请
export function initBzFlow(data){
    return axios({
          url: assessCheckApi.initBzFlow,
          method:'post',
          data:{...data},
          url_2:'outside',
    })
}
// 内控-预算调配申请流程保存接口
export function saveFlow(data){
    return axios({
          url: assessCheckApi.saveFlow,
          method:'post',
          data:{...data},
          url_2:'outside',
    })
}
// 内控-预算调配申请流程提交接口
export function submitFlow(data){
    return axios({
          url: assessCheckApi.submitFlow,
          method:'post',
          data:{...data},
          url_2:'outside',
    })
}
  // 删除预算调配申请
export function deleteLgqsFlowJob(params){
    return axios({
          url: assessCheckApi.deleteLgqsFlowJob,
          method:'delete',
          params:params,
          url_2:'outside',
    })
}
  // 列表-数据修订
export function Pagesjxd(params){
    return axios({
          url: assessCheckApi.Pagesjxd,
          method:'get',
          params:{...params},
          url_2:'outside',
    })
}
  // 流程监控-分页查询
export function flowJkPage(params){
    return axios({
          url: assessCheckApi.flowJkPage,
          method:'get',
          params:{...params},
          url_2:'outside',
    })
}
  // 流程列表-我的已办
export function myJobPage(params){
    return axios({
          url: assessCheckApi.myJobPage,
          method:'get',
          params:{...params},
          url_2:'outside',
    })
}
// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
    return axios({
          url: assessCheckApi.queryJobByJobId,
          method:'get',
          params:{...params},
          url_2:'outside',
    })
}


// 查询拆分后的项目预算指标
export function xmyslist(params){
    return axios({
        url: assessCheckApi.xmyslist,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}
// 内控-预算调配明细-添加
export function ysAdd(data){
    return axios({
          url: assessCheckApi.ysAdd,
          method:'post',
          data:{...data},
          url_2:'outside',
    })
}
// 内控-预算调配明细-编辑
export function ysEdit(data){
    return axios({
          url: assessCheckApi.ysEdit,
          method:'put',
          data:{...data},
          url_2:'outside',
    })
}
// 内控-预算调配明细-通过id删除
export function ysDelete(params){
    return axios({
        url: assessCheckApi.ysDelete,
        method:'delete',
        params:{...params},
        url_2:'outside',
    })
}
// 查询当前申请下的预算调配明细
export function selectYstpmx(params){
    return axios({
        url: assessCheckApi.selectYstpmx,
        method:'get',
        params:{...params},
        url_2:'outside',
    })
}

// 下载个人签名
export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        responseType: 'arraybuffer'
    })
}
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
          url: assessCheckApi.returnUpperzdyFlowJob,
          method:'post',
          data:{...data},
          url_2:'outside',
    })
}

export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}
